package cn.cheln.explorer.ui;

import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import cn.cheln.support.log.Logs;
import java.util.List;

public class ViewUtil
{
  public static View findListViewByItemView(View paramView)
  {
    if ((paramView == null) || (paramView.getParent() instanceof ListView))
      return paramView;
    Log.i("---", "---" + paramView);
    return findListViewByItemView((ViewGroup)paramView.getParent());
  }

  public static View findViewById(Object paramObject, int paramInt)
  {
    if (paramObject instanceof ViewGroup)
    {
      ViewGroup localViewGroup = (ViewGroup)paramObject;
      View localView1 = localViewGroup.findViewById(paramInt);
      if (localView1 == null);
      for (int i = 0; ; ++i)
      {
        if (i >= localViewGroup.getChildCount())
          return localView1;
        View localView2 = localViewGroup.getChildAt(i);
        if ((localView2 instanceof ViewGroup) && (findViewById((ViewGroup)localView2, paramInt) == null))
          return null;
      }
    }
    return null;
  }

  public static void findViewByIds(View paramView, int paramInt, List<View> paramList)
  {
    ViewGroup localViewGroup;
    if (paramInt == paramView.getId())
    {
      paramList.add(paramView);
      Logs.i("", "========= addview " + paramView);
    }
    if (paramView instanceof ViewGroup)
      localViewGroup = (ViewGroup)paramView;
    for (int i = 0; ; ++i)
    {
      if (i >= localViewGroup.getChildCount())
        return;
      findViewByIds(localViewGroup.getChildAt(i), paramInt, paramList);
    }
  }
}

/* Location:           H:\360云盘\lewa_explorer_3.0\bin\FileApp_orig_dex2jar.jar
 * Qualified Name:     cn.cheln.explorer.ui.ViewUtil
 * JD-Core Version:    0.5.2
 */